-- GENERATED SPELL FOR [Dreadcaller] --


function spell0_19434(pUnit, Event) --@Cripple,n/a--
pUnit:FullCastSpellOnTarget(11443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19434', 18000, 1)
end

function spell1_19434(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(32666,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19434', 590, 1)
end

function Sorts_19434(pUnit, Event)
local choix_sorts_19434 = math.random(0, 1)
if choix_sorts_19434 == 0 then
pUnit:RegisterEvent('spell0_19434', 1, 1)
end
if choix_sorts_19434 == 1 then
pUnit:RegisterEvent('spell1_19434', 1, 1)
end
end

function mob19434_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19434', math.random(1500, 3000), 1)
end

function mob19434_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19434_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19434_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19434, 1, 'mob19434_Action')
RegisterUnitEvent(19434, 2, 'mob19434_Leave')
RegisterUnitEvent(19434, 3, 'mob19434_Kill')
RegisterUnitEvent(19434, 4, 'mob19434_Die')
